<?php
/**
 * Name: RDBConfig.php
 * Created by: Chung Hoang Long
 * Created Date: 11-10-2013
 * Description: Doi tuong chua thong tin ket noi CSDL.
 */

class RDBConfig {
	
	private $host;
	private $dbName;
	private $userName;
	private $password;
	
	public static $DEFAULT_HOST = 'localhost';
	public static $DEFAULT_DBNAME = 'srmt';
	public static $DEFAULT_USERNAME = 'root';
	public static $DEFAULT_PASSWORD = '';
	
	public function __construct($host, $dbName, 
			$userName, $password) {
		$this->host = $host;
		$this->dbName = $dbName;
		$this->userName = $userName;
		$this->password = $password;
	}
	
	public function getHost() {
		return $this->host;
	}
	
	public function setHost($host) {
		$this->host = $host;
	}
	
	public function getDBName() {
		return $this->dbName;
	}
	
	public function setDBName($dbName) {
		$this->dbName = $dbName;
	}
	
	public function getUserName() {
		return $this->userName;
	}
	
	public function setUserName($userName) {
		$this->userName;
	}
	
	public function getPassword() {
		return $this->password;
	}
	
	public function setPassword($password) {
		$this->password = $password;
	}
}

?>